#include <bits/stdc++.h>
#define int long long
#define maxn 100010

using namespace std;

int n, ans;
int r[maxn], f[maxn];

signed main() {
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
    cin >> n;
    for (int i = 1; i <= n; i++) {
        cin >> r[i];
        f[i] = 1;
    }
    sort(r + 1, r + 1 + n);
    ans = n;
    for (int i = 1; i <= n; i++) {
        for (int j = i + 1; j <= n; j++) {
            if ((r[i] < r[j]) && (f[j] == 1) && (f[i] != -2)) {
                ans--;
                f[j] = -1, f[i] = -2;
                break;
            }
        }
    }
    /*
    for (int i = n; i >= 1; i--) {
        for (int j = i - 1; j >= 1; j--) {
            if (r[i] > r[j] && f[i] && f[j] != -2) {
                ans--;
                f[i] = -1, f[j] = -2;
                break;
            }
        }
    }
    */
    cout << ans << '\n';
    return 0;
}